<?php
namespace app\api\validate;


use think\Validate;

class User extends Validate{
    protected $rule = [
        'username' => 'require',
        'phone_number' => 'require',
    ];

    protected $message = [
        'username' => '用户名必须填',
        'phone_number' => '电话号码必须填',
    ];

    protected $scece = [
        'send_code' => ['phone_number']
    ];
}